setVec2

abstract fun setVec2(block: DesignBlock, property: String, value: Vector2)

Set a vec2 property of the given design block to the given value. position sets position/x and position/y, and shape/position sets shape/position/x and shape/position/y, with the checks of those properties. Either both components change or neither does. Experimental: this API may change in a minor release.

Parameters

block

the block whose property should be set.

property

the name of the property to set, e.g. position.

value

the value to set.